body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
  width: 100%;
  background: #fff;
  padding: 16px;
  text-align: center;
}

.state {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.toggle-button {
  padding: 8px 16px;
  font-size: 1em;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.5s, transform 0.5s, box-shadow 0.5s;
}

.toggle-button:hover {
  background-color: #0056b3;
}

.toggle-button:active {
  transform: scale(0.9);
  /* 按钮按下时缩小 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  /* 按钮按下时阴影变小 */
}